import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from "@/views/Login";
import GoodsList from "@/views/GoodsList";

Vue.use(VueRouter)

const routes = [
  {path:'/',redirect:'/login'},
  {name:'商家登录',path: '/login',component:Login},
  {name:'商品列表',path: '/goodslist',component:GoodsList}
]

const router = new VueRouter({
  routes
})

export default router
